﻿<ul>
    @foreach (DavidCms.Web.Models.NavigationVO n in @ViewBag.Navs)
    {
        //string currentPath = n.Url.EndsWith(ViewBag.CurrentPath) ? "current-menu-item" : "";
        <li>@*// class="@currentPath">*@

            @Html.ActionLink(n.Name, n.Type, new { Para = n.EnglishName })
            @*<a href="@n.Url"><span>@n.Name</span></a>*@
            @if (@n.Children != null && @n.Children.Count > 0)
            {
                <ul class="sub-menu">
                    @foreach (var v in @n.Children)
                    {
                        <li>
                            @Html.ActionLink(v.Name, v.Type, new { Para = v.EnglishName })
                        </li>
                    }
                </ul>
            }
        </li>
    }
</ul>